package com.cssl.domain.dto;

import com.cssl.domain.DtsGroupOnRules;

public class GroupPurchaseDto {
    /**
     * 团购id,不是规则id,发起者传空 参与者不得为空
     */
    Integer groupId;
    /**
     * 商品数量
     */
    Integer number;
    /**
     * 是否发起者
     */
    Boolean isOpenGroup;
    /**
     * 用户id (发起者可以为空,参与者 给我的值为发起者的id )
     */
    Integer userId;
    /**
     * 规格
     */
    String specifications;
    /**
     * 团购规则id(不能为空),商品id(可以为空)
     */
    DtsGroupOnRules groupRole;

    public GroupPurchaseDto(Integer groupId, Integer number, Boolean isOpenGroup, Integer userId, String specifications, DtsGroupOnRules groupRole) {
        this.groupId = groupId;
        this.number = number;
        this.isOpenGroup = isOpenGroup;
        this.userId = userId;
        this.specifications = specifications;
        this.groupRole = groupRole;
    }


    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public DtsGroupOnRules getGroupRole() {
        return groupRole;
    }

    public void setGroupRole(DtsGroupOnRules groupRole) {
        this.groupRole = groupRole;
    }

    public Boolean getOpenGroup() {
        return isOpenGroup;
    }

    public void setOpenGroup(Boolean openGroup) {
        isOpenGroup = openGroup;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public GroupPurchaseDto() {
    }
}
